package com.his.bean;

import java.io.Serializable;

/**
 * 患者用户表
 * @TableName dzm_patient
 */
public class DzmPatient implements Serializable {
    /**
     * 主键
     */
    private Integer patientId;

    /**
     * 所属医院、诊所
     */
    private Integer hospitalId;

    /**
     *
     */
    private String name;

    /**
     * 微信openid
     */
    private String openid;

    /**
     * 患者电话
     */
    private String mobile;

    /**
     * 修改时间
     */
    private String updateTime;

    /**
     *  登录密码
     */
    private String password;

    /**
     * 患者性别1男2女
     */
    private Byte sex;

    /**
     *
     */
    private String birthday;

    /**
     *
     */
    private String idCard;

    /**
     *
     */
    private String mobile1;

    /**
     * 是否完善信息，0否1已完善
     */
    private Byte isFinal;

    /**
     * 最后登录ip
     */
    private Integer lastLoginIp;

    /**
     * 最后登录时间
     */
    private Integer lastLoginTime;

    /**
     * 地址信息
     */
    private String address;

    /**
     * 注册时间
     */
    private Integer createTime;

    /**
     * 省区id
     */
    private Integer provinceId;

    /**
     * 市区id
     */
    private Integer cityId;

    /**
     * 县区id
     */
    private Integer districtId;

    /**
     * 过敏信息
     */
    private String allergyInfo;

    /**
     * 是否移除 0：正常 1：删除
     */
    private Boolean isDel;

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public Integer getPatientId() {
        return patientId;
    }

    /**
     * 主键
     */
    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    /**
     * 所属医院、诊所
     */
    public Integer getHospitalId() {
        return hospitalId;
    }

    /**
     * 所属医院、诊所
     */
    public void setHospitalId(Integer hospitalId) {
        this.hospitalId = hospitalId;
    }

    /**
     *
     */
    public String getName() {
        return name;
    }

    /**
     *
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 微信openid
     */
    public String getOpenid() {
        return openid;
    }

    /**
     * 微信openid
     */
    public void setOpenid(String openid) {
        this.openid = openid;
    }

    /**
     * 患者电话
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * 患者电话
     */
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /**
     * 修改时间
     */
    public String getUpdateTime() {
        return updateTime;
    }

    /**
     * 修改时间
     */
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    /**
     *  登录密码
     */
    public String getPassword() {
        return password;
    }

    /**
     *  登录密码
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 患者性别1男2女
     */
    public Byte getSex() {
        return sex;
    }

    /**
     * 患者性别1男2女
     */
    public void setSex(Byte sex) {
        this.sex = sex;
    }

    /**
     *
     */
    public String getBirthday() {
        return birthday;
    }

    /**
     *
     */
    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    /**
     *
     */
    public String getIdCard() {
        return idCard;
    }

    /**
     *
     */
    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    /**
     *
     */
    public String getMobile1() {
        return mobile1;
    }

    /**
     *
     */
    public void setMobile1(String mobile1) {
        this.mobile1 = mobile1;
    }

    /**
     * 是否完善信息，0否1已完善
     */
    public Byte getIsFinal() {
        return isFinal;
    }

    /**
     * 是否完善信息，0否1已完善
     */
    public void setIsFinal(Byte isFinal) {
        this.isFinal = isFinal;
    }

    /**
     * 最后登录ip
     */
    public Integer getLastLoginIp() {
        return lastLoginIp;
    }

    /**
     * 最后登录ip
     */
    public void setLastLoginIp(Integer lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    /**
     * 最后登录时间
     */
    public Integer getLastLoginTime() {
        return lastLoginTime;
    }

    /**
     * 最后登录时间
     */
    public void setLastLoginTime(Integer lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    /**
     * 地址信息
     */
    public String getAddress() {
        return address;
    }

    /**
     * 地址信息
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 注册时间
     */
    public Integer getCreateTime() {
        return createTime;
    }

    /**
     * 注册时间
     */
    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }

    /**
     * 省区id
     */
    public Integer getProvinceId() {
        return provinceId;
    }

    /**
     * 省区id
     */
    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    /**
     * 市区id
     */
    public Integer getCityId() {
        return cityId;
    }

    /**
     * 市区id
     */
    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    /**
     * 县区id
     */
    public Integer getDistrictId() {
        return districtId;
    }

    /**
     * 县区id
     */
    public void setDistrictId(Integer districtId) {
        this.districtId = districtId;
    }

    /**
     * 过敏信息
     */
    public String getAllergyInfo() {
        return allergyInfo;
    }

    /**
     * 过敏信息
     */
    public void setAllergyInfo(String allergyInfo) {
        this.allergyInfo = allergyInfo;
    }

    /**
     * 是否移除 0：正常 1：删除
     */
    public Boolean getIsDel() {
        return isDel;
    }

    /**
     * 是否移除 0：正常 1：删除
     */
    public void setIsDel(Boolean isDel) {
        this.isDel = isDel;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmPatient other = (DzmPatient) that;
        return (this.getPatientId() == null ? other.getPatientId() == null : this.getPatientId().equals(other.getPatientId()))
            && (this.getHospitalId() == null ? other.getHospitalId() == null : this.getHospitalId().equals(other.getHospitalId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getOpenid() == null ? other.getOpenid() == null : this.getOpenid().equals(other.getOpenid()))
            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getBirthday() == null ? other.getBirthday() == null : this.getBirthday().equals(other.getBirthday()))
            && (this.getIdCard() == null ? other.getIdCard() == null : this.getIdCard().equals(other.getIdCard()))
            && (this.getMobile1() == null ? other.getMobile1() == null : this.getMobile1().equals(other.getMobile1()))
            && (this.getIsFinal() == null ? other.getIsFinal() == null : this.getIsFinal().equals(other.getIsFinal()))
            && (this.getLastLoginIp() == null ? other.getLastLoginIp() == null : this.getLastLoginIp().equals(other.getLastLoginIp()))
            && (this.getLastLoginTime() == null ? other.getLastLoginTime() == null : this.getLastLoginTime().equals(other.getLastLoginTime()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getProvinceId() == null ? other.getProvinceId() == null : this.getProvinceId().equals(other.getProvinceId()))
            && (this.getCityId() == null ? other.getCityId() == null : this.getCityId().equals(other.getCityId()))
            && (this.getDistrictId() == null ? other.getDistrictId() == null : this.getDistrictId().equals(other.getDistrictId()))
            && (this.getAllergyInfo() == null ? other.getAllergyInfo() == null : this.getAllergyInfo().equals(other.getAllergyInfo()))
            && (this.getIsDel() == null ? other.getIsDel() == null : this.getIsDel().equals(other.getIsDel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPatientId() == null) ? 0 : getPatientId().hashCode());
        result = prime * result + ((getHospitalId() == null) ? 0 : getHospitalId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getOpenid() == null) ? 0 : getOpenid().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getBirthday() == null) ? 0 : getBirthday().hashCode());
        result = prime * result + ((getIdCard() == null) ? 0 : getIdCard().hashCode());
        result = prime * result + ((getMobile1() == null) ? 0 : getMobile1().hashCode());
        result = prime * result + ((getIsFinal() == null) ? 0 : getIsFinal().hashCode());
        result = prime * result + ((getLastLoginIp() == null) ? 0 : getLastLoginIp().hashCode());
        result = prime * result + ((getLastLoginTime() == null) ? 0 : getLastLoginTime().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getProvinceId() == null) ? 0 : getProvinceId().hashCode());
        result = prime * result + ((getCityId() == null) ? 0 : getCityId().hashCode());
        result = prime * result + ((getDistrictId() == null) ? 0 : getDistrictId().hashCode());
        result = prime * result + ((getAllergyInfo() == null) ? 0 : getAllergyInfo().hashCode());
        result = prime * result + ((getIsDel() == null) ? 0 : getIsDel().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", patientId=").append(patientId);
        sb.append(", hospitalId=").append(hospitalId);
        sb.append(", name=").append(name);
        sb.append(", openid=").append(openid);
        sb.append(", mobile=").append(mobile);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", password=").append(password);
        sb.append(", sex=").append(sex);
        sb.append(", birthday=").append(birthday);
        sb.append(", idCard=").append(idCard);
        sb.append(", mobile1=").append(mobile1);
        sb.append(", isFinal=").append(isFinal);
        sb.append(", lastLoginIp=").append(lastLoginIp);
        sb.append(", lastLoginTime=").append(lastLoginTime);
        sb.append(", address=").append(address);
        sb.append(", createTime=").append(createTime);
        sb.append(", provinceId=").append(provinceId);
        sb.append(", cityId=").append(cityId);
        sb.append(", districtId=").append(districtId);
        sb.append(", allergyInfo=").append(allergyInfo);
        sb.append(", isDel=").append(isDel);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
